package com.ficus.road.maintain.core.model.taskInfo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ficus.road.maintain.core.model.FailedThirdRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 未收到回执的案卷流程查询请求
 * @author lijiawei
 * @date 2023/10/8 下午1:55
 */

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AbnormalWorkCheckRequest extends FailedThirdRequest {

    public static final String typeName = "案卷流程查询请求(中海)";
    private String taskNum;

    @Override
    public String getTypeName() {
        return AbnormalWorkCheckRequest.typeName;
    }

    @Override
    protected String generateRequestId() {
        return typeName +  "_" + this.getTaskNum();
    }

    /**
     * 这部分实现待优化
     */
    public AbnormalWorkCheckRequest(String taskNum) {
        super();
        this.taskNum = taskNum;
        setId(generateRequestId());
    }


}
